cb2b106a9ed9721678fcf5e09563e48fb300c746,library/src/main/java/github/nisrulz/easydeviceinfo/EasyBluetoothMod.java,EasyBluetoothMod,getBluetoothMAC,#,45
Before Change
*/
@SuppressWarnings("MissingPermission") public final String getBluetoothMAC() {
String result = "02:00:00:00:00:00";
if (context.checkCallingOrSelfPermission(Manifest.permission.BLUETOOTH)
== PackageManager.PERMISSION_GRANTED) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
// Hardware ID are restricted in Android 6+
// https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id
After Change
*/
@SuppressWarnings("MissingPermission") public final String getBluetoothMAC() {
String result = "02:00:00:00:00:00";
if (PermissionUtil.hasPermission(context, Manifest.permission.BLUETOOTH)) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
// Hardware ID are restricted in Android 6+
// https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id